package com.aspose.cells.a.d;

public class zeq extends ze {
   private zdk g;
   private int h;
   private int i;

   public zeq(com.aspose.cells.b.a.d.zm var1, zei var2) throws Exception {
      this.h = Integer.MAX_VALUE;
      this.i = 0;
      this.g = new zdk(var1, var2);
   }

   public zeq(com.aspose.cells.b.a.d.zm var1, zei var2, int var3) throws Exception {
      this(var1, var2);
      this.i = var3;
   }

   public void a(zl var1) throws Exception {
      if (var1 instanceof com.aspose.cells.zan) {
         this.h = ((com.aspose.cells.zan)var1).B;
      }

      var1.a((ze)this);
   }

   public void a() throws Exception {
      if (this.h >= this.i) {
         this.g.a();
      }
   }

   public void a(zm var1) throws Exception {
      if (this.h >= this.i) {
         this.g.a(var1.a());
      }
   }

   public void b(zm var1) throws Exception {
      if (this.h >= this.i) {
         this.g.b();
      }
   }

   public void a(zb var1) throws Exception {
      if (this.h >= this.i) {
         this.g.d().a(var1);
      }
   }

   public void b(zb var1) throws Exception {
      if (this.h >= this.i) {
         this.g.d().b(var1);
      }
   }

   public void a(zf var1) throws Exception {
      if (this.h >= this.i) {
         this.g.d().a(var1);
      }
   }

   public void a(zn var1) throws Exception {
      if (this.h >= this.i) {
         this.g.d().a(var1);
      }
   }

   public void b(zn var1) throws Exception {
      if (this.h >= this.i) {
         this.g.d().b(var1);
      }
   }

   public void a(zo var1) throws Exception {
      if (this.h >= this.i) {
         this.g.d().a(var1);
      }
   }

   public void b(zo var1) throws Exception {
      if (this.h >= this.i) {
         this.g.d().b(var1);
      }
   }

   public void a(zq var1) throws Exception {
      if (this.h >= this.i) {
         this.g.d().a(var1);
      }
   }

   public void a(zp var1) throws Exception {
      if (this.h >= this.i) {
         this.g.d().a(var1);
      }
   }

   public void a(za var1) throws Exception {
      if (this.h >= this.i) {
         this.g.d().a(var1);
      }
   }

   public void a(zi var1) throws Exception {
      if (this.h >= this.i) {
         this.g.d().a(var1);
      }
   }

   public void a(zj var1) throws Exception {
      if (this.h >= this.i) {
         if (var1.g() != null) {
            this.a(var1.g());
         }

         switch(var1.e()) {
         case 0:
         case 4:
         case 5:
         case 6:
         case 7:
         case 8:
            int var17 = this.g.c().r();
            if (var17 > 0) {
               try {
                  com.aspose.cells.b.a.b.za var3 = new com.aspose.cells.b.a.b.za(new com.aspose.cells.b.a.d.zh(var1.d()));
                  double var4 = zaj.d((double)var1.c().b());
                  double var6 = zaj.d((double)var1.c().c());
                  double var8 = (double)var3.i() / var4;
                  double var10 = (double)var3.h() / var6;
                  this.g.c().b(4);
                  if (var8 > (double)var17 && var10 > (double)var17) {
                     int var12 = (int)(var6 * (double)var17);
                     int var13 = (int)(var6 * (double)var17);
                     com.aspose.cells.b.a.b.za var14 = new com.aspose.cells.b.a.b.za(var3, var12, var13);
                     com.aspose.cells.b.a.d.zh var15 = new com.aspose.cells.b.a.d.zh();
                     var14.a(var15, var3.e());
                     var14.d();
                     var1.a(var15.o());
                     var15.a();
                  }

                  var3.d();
               } catch (Exception var16) {
                  ;
               }
            }

            this.g.d().a(var1);
            break;
         case 1:
         case 2:
            zb var2 = zch.a(var1);
            var2.a(var1.g());
            var2.a((ze)this);
            break;
         case 3:
         default:
            assert false;
         }

      }
   }

   public void a(zk var1) throws Exception {
      if (this.h >= this.i) {
         this.g.d().a(var1);
      }
   }

   public zdk c() {
      return this.g;
   }
}
